package kr.co.shoppingmall.member;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class MemberDAOImpl extends SqlMapClientDaoSupport implements MemberDAO {
	
	@Override
	public void insertMember(MemberDTO dto) {
		getSqlMapClientTemplate().insert("insertMember", dto);
	}
	@Override
	public int getLoginCheck(MemberDTO dto) {
		return (int)
			getSqlMapClientTemplate().queryForObject("getLoginCheck", dto);
	}
	@Override
	public MemberDTO getMember(String id) {
		return (MemberDTO)
			getSqlMapClientTemplate().queryForObject("getMember", id);
	}
	@Override
	public void updateMember(MemberDTO dto) {
		getSqlMapClientTemplate().update("updateMember", dto);
	}
	@Override
	public void deleteMember(MemberDTO dto) {
		getSqlMapClientTemplate().delete("deleteMember",	dto);
	}
}
